<template>
  <view class="login-page">
    <view class="login-card">
      <view class="title">登录</view>
      <view class="form-item">
        <input type="text" placeholder="请输入用户名" class="input" />
      </view>
      <view class="form-item">
        <input type="password" placeholder="请输入密码" class="input" />
      </view>
      <button type="primary" class="btn">登录</button>
      <view class="link">
        没有账号？<navigator url="/pages/register/register">去注册</navigator>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: "LoginPage"
};
</script>

<style scoped>
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.login-card {
  width: 80%;
  max-width: 400px;
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.form-item {
  margin-bottom: 16px;
}

.input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn {
  margin-bottom: 16px;
}

.link {
  text-align: center;
  font-size: 14px;
}

.link navigator {
  color: #007aff;
}
</style>